import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/Login.vue'
import Home from "../views/Home";
import Test1 from "../views/Test1";
import FirendChat from "../views/chat/FirendChat";

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'Login',
        component: Login
    },
    {
        path: '/home',
        name: 'home',
        component: Home
    },
    {
        path: '/home',
        name: 'home',
        component: Home,
        children: [
            {
                path: '/FirendChat',
                name: '在线聊天',
                component: FirendChat,
                hidden:true
            },
        ]
    },
]

const router = new VueRouter({
  routes
})

export default router
